<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Paho C++: src/mqtt/delivery_token.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Paho C++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">The Paho MQTT C++ Client Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('delivery__token_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">delivery_token.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="delivery__token_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">/*******************************************************************************</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Copyright (c) 2013-2016 Frank Pagliughi &lt;fpagliughi@mindspring.com&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * All rights reserved. This program and the accompanying materials</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * are made available under the terms of the Eclipse Public License v1.0</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * and Eclipse Distribution License v1.0 which accompany this distribution.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * The Eclipse Public License is available at</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    http://www.eclipse.org/legal/epl-v10.html</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * and the Eclipse Distribution License is available at</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *   http://www.eclipse.org/org/documents/edl-v10.php.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * Contributors:</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    Frank Pagliughi - initial implementation and documentation</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *******************************************************************************/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#ifndef __mqtt_delivery_token_h</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __mqtt_delivery_token_h</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;MQTTAsync.h&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="token_8h.html">mqtt/token.h</a>&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="message_8h.html">mqtt/message.h</a>&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span>mqtt {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html">   41</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmqtt_1_1delivery__token.html">delivery_token</a> : <span class="keyword">public</span> <a class="code" href="classmqtt_1_1token.html">token</a></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    const_message_ptr msg_;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#ac39954340d8b15edaa883af1bcfcf7ae">   47</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classmqtt_1_1async__client.html">async_client</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">void</span> set_message(const_message_ptr msg) { msg_ = msg; }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#aa70c38dfa04a7f03443971077425dc57">   57</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1delivery__token.html#aa70c38dfa04a7f03443971077425dc57">ptr_t</a> = std::shared_ptr&lt;delivery_token&gt;;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#aa8ff987c0475e5dd658b2dc7db9e8046">   59</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1delivery__token.html#aa8ff987c0475e5dd658b2dc7db9e8046">const_ptr_t</a> = std::shared_ptr&lt;delivery_token&gt;;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#af52a9beb73d62709cf153a1b098d0c11">   61</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1delivery__token.html#af52a9beb73d62709cf153a1b098d0c11">weak_ptr_t</a> = std::weak_ptr&lt;delivery_token&gt;;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#a21e968998bb4adb1c4c609d353b3d47f">   67</a></span>&#160;    <a class="code" href="classmqtt_1_1delivery__token.html#a21e968998bb4adb1c4c609d353b3d47f">delivery_token</a>(<a class="code" href="classmqtt_1_1iasync__client.html">iasync_client</a>&amp; cli) : <a class="code" href="classmqtt_1_1token.html">token</a>(cli) {}</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#aafb2b01f848d51933800bb93705b6d1f">   73</a></span>&#160;    <a class="code" href="classmqtt_1_1delivery__token.html#aafb2b01f848d51933800bb93705b6d1f">delivery_token</a>(<a class="code" href="classmqtt_1_1iasync__client.html">iasync_client</a>&amp; cli, const_message_ptr msg)</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            : <a class="code" href="classmqtt_1_1token.html">token</a>(cli, msg-&gt;get_topic()), msg_(std::move(msg)) {}</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#a3cb9a5ab831373eba1b8bdaee4ab7737">   85</a></span>&#160;    <a class="code" href="classmqtt_1_1delivery__token.html#a3cb9a5ab831373eba1b8bdaee4ab7737">delivery_token</a>(<a class="code" href="classmqtt_1_1iasync__client.html">iasync_client</a>&amp; cli, const_message_ptr msg,</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                   <span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb)</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            : <a class="code" href="classmqtt_1_1token.html">token</a>(cli, msg-&gt;get_topic(), userContext, cb), msg_(std::move(msg)) {}</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#a7f86fa1fb9bc552e0ad67fe3ee15c0d8">   92</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmqtt_1_1delivery__token.html#aa70c38dfa04a7f03443971077425dc57">ptr_t</a> <a class="code" href="classmqtt_1_1delivery__token.html#a7f86fa1fb9bc552e0ad67fe3ee15c0d8">create</a>(<a class="code" href="classmqtt_1_1iasync__client.html">iasync_client</a>&amp; cli) {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        <span class="keywordflow">return</span> std::make_shared&lt;delivery_token&gt;(cli);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    }</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#a2f3b18b903e4c93403f5cc036a9d5143">  100</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmqtt_1_1delivery__token.html#aa70c38dfa04a7f03443971077425dc57">ptr_t</a> <a class="code" href="classmqtt_1_1delivery__token.html#a2f3b18b903e4c93403f5cc036a9d5143">create</a>(<a class="code" href="classmqtt_1_1iasync__client.html">iasync_client</a>&amp; cli, const_message_ptr msg) {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keywordflow">return</span> std::make_shared&lt;delivery_token&gt;(cli, msg);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#aa5edc8a7ce723de8926c58f832e970e4">  113</a></span>&#160;    <span class="keyword">static</span> <a class="code" href="classmqtt_1_1delivery__token.html#aa70c38dfa04a7f03443971077425dc57">ptr_t</a> <a class="code" href="classmqtt_1_1delivery__token.html#aa5edc8a7ce723de8926c58f832e970e4">create</a>(<a class="code" href="classmqtt_1_1iasync__client.html">iasync_client</a>&amp; cli, const_message_ptr msg,</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;                        <span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb) {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> std::make_shared&lt;delivery_token&gt;(cli, msg, userContext, cb);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classmqtt_1_1delivery__token.html#a14e8ce913a6a8cc3b382bcc06a460702">  121</a></span>&#160;    <span class="keyword">virtual</span> const_message_ptr <a class="code" href="classmqtt_1_1delivery__token.html#a14e8ce913a6a8cc3b382bcc06a460702">get_message</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> msg_; }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;};</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="keyword">using</span> delivery_token_ptr = <a class="code" href="classmqtt_1_1delivery__token.html#aa70c38dfa04a7f03443971077425dc57">delivery_token::ptr_t</a>;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keyword">using</span> const_delivery_token_ptr = <a class="code" href="classmqtt_1_1delivery__token.html#aa8ff987c0475e5dd658b2dc7db9e8046">delivery_token::const_ptr_t</a>;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="comment">// end namespace mqtt</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;}</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">#endif      // __mqtt_delivery_token_h</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor"></span></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_a7f86fa1fb9bc552e0ad67fe3ee15c0d8"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#a7f86fa1fb9bc552e0ad67fe3ee15c0d8">mqtt::delivery_token::create</a></div><div class="ttdeci">static ptr_t create(iasync_client &amp;cli)</div><div class="ttdoc">Creates an empty delivery token connected to a particular client. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:92</div></div>
<div class="ttc" id="classmqtt_1_1async__client_html"><div class="ttname"><a href="classmqtt_1_1async__client.html">mqtt::async_client</a></div><div class="ttdoc">Lightweight client for talking to an MQTT server using non-blocking methods that allow an operation t...</div><div class="ttdef"><b>Definition:</b> async_client.h:60</div></div>
<div class="ttc" id="classmqtt_1_1iaction__listener_html"><div class="ttname"><a href="classmqtt_1_1iaction__listener.html">mqtt::iaction_listener</a></div><div class="ttdoc">Provides a mechanism for tracking the completion of an asynchronous action. </div><div class="ttdef"><b>Definition:</b> iaction_listener.h:48</div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_aafb2b01f848d51933800bb93705b6d1f"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#aafb2b01f848d51933800bb93705b6d1f">mqtt::delivery_token::delivery_token</a></div><div class="ttdeci">delivery_token(iasync_client &amp;cli, const_message_ptr msg)</div><div class="ttdoc">Creates a delivery token connected to a particular client. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:73</div></div>
<div class="ttc" id="message_8h_html"><div class="ttname"><a href="message_8h.html">message.h</a></div><div class="ttdoc">Declaration of MQTT message class. </div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_a2f3b18b903e4c93403f5cc036a9d5143"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#a2f3b18b903e4c93403f5cc036a9d5143">mqtt::delivery_token::create</a></div><div class="ttdeci">static ptr_t create(iasync_client &amp;cli, const_message_ptr msg)</div><div class="ttdoc">Creates a delivery token connected to a particular client. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:100</div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_af52a9beb73d62709cf153a1b098d0c11"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#af52a9beb73d62709cf153a1b098d0c11">mqtt::delivery_token::weak_ptr_t</a></div><div class="ttdeci">std::weak_ptr&lt; delivery_token &gt; weak_ptr_t</div><div class="ttdoc">Weak pointer to an object of this class. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:61</div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html"><div class="ttname"><a href="classmqtt_1_1iasync__client.html">mqtt::iasync_client</a></div><div class="ttdoc">Enables an application to communicate with an MQTT server using non-blocking methods. </div><div class="ttdef"><b>Definition:</b> iasync_client.h:57</div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_aa5edc8a7ce723de8926c58f832e970e4"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#aa5edc8a7ce723de8926c58f832e970e4">mqtt::delivery_token::create</a></div><div class="ttdeci">static ptr_t create(iasync_client &amp;cli, const_message_ptr msg, void *userContext, iaction_listener &amp;cb)</div><div class="ttdoc">Creates a delivery token connected to a particular client. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:113</div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_a14e8ce913a6a8cc3b382bcc06a460702"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#a14e8ce913a6a8cc3b382bcc06a460702">mqtt::delivery_token::get_message</a></div><div class="ttdeci">virtual const_message_ptr get_message() const </div><div class="ttdoc">Gets the message associated with this token. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:121</div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_aa70c38dfa04a7f03443971077425dc57"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#aa70c38dfa04a7f03443971077425dc57">mqtt::delivery_token::ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; delivery_token &gt; ptr_t</div><div class="ttdoc">Smart/shared pointer to an object of this class. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:57</div></div>
<div class="ttc" id="classmqtt_1_1token_html"><div class="ttname"><a href="classmqtt_1_1token.html">mqtt::token</a></div><div class="ttdoc">Provides a mechanism for tracking the completion of an asynchronous action. </div><div class="ttdef"><b>Definition:</b> token.h:49</div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_a3cb9a5ab831373eba1b8bdaee4ab7737"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#a3cb9a5ab831373eba1b8bdaee4ab7737">mqtt::delivery_token::delivery_token</a></div><div class="ttdeci">delivery_token(iasync_client &amp;cli, const_message_ptr msg, void *userContext, iaction_listener &amp;cb)</div><div class="ttdoc">Creates a delivery token connected to a particular client. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:85</div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_a21e968998bb4adb1c4c609d353b3d47f"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#a21e968998bb4adb1c4c609d353b3d47f">mqtt::delivery_token::delivery_token</a></div><div class="ttdeci">delivery_token(iasync_client &amp;cli)</div><div class="ttdoc">Creates an empty delivery token connected to a particular client. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:67</div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html_aa8ff987c0475e5dd658b2dc7db9e8046"><div class="ttname"><a href="classmqtt_1_1delivery__token.html#aa8ff987c0475e5dd658b2dc7db9e8046">mqtt::delivery_token::const_ptr_t</a></div><div class="ttdeci">std::shared_ptr&lt; delivery_token &gt; const_ptr_t</div><div class="ttdoc">Smart/shared pointer to a const object of this class. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:59</div></div>
<div class="ttc" id="token_8h_html"><div class="ttname"><a href="token_8h.html">token.h</a></div><div class="ttdoc">Declaration of MQTT token class. </div></div>
<div class="ttc" id="classmqtt_1_1delivery__token_html"><div class="ttname"><a href="classmqtt_1_1delivery__token.html">mqtt::delivery_token</a></div><div class="ttdoc">Provides a mechanism to track the delivery progress of a message. </div><div class="ttdef"><b>Definition:</b> delivery_token.h:41</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_503ebd9f384f44c9859dcb1451d026bc.html">mqtt</a></li><li class="navelem"><a class="el" href="delivery__token_8h.html">delivery_token.h</a></li>
    <li class="footer">Generated on Sun Jul 23 2017 10:24:29 for Paho C++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
